nestedsvm: fix fpu context switch
authorChristoph Egger <Christoph.Egger@amd.com>
Mon, 16 May 2011 12:31:42 +0000 (13:31 +0100)
committerChristoph Egger <Christoph.Egger@amd.com>
Mon, 16 May 2011 12:31:42 +0000 (13:31 +0100)
commit3544dfc663481c4623fdafa8cc025372c54eeed3
treed9a118b9d2df4cc87a199bc71a64f535ab0cef51
parent0d99131f9d714f4ac7504c1c5edb6e09577519ae
nestedsvm: fix fpu context switch

Two different vmcb's are used to run l1 guest and l2 guest.
When host xen switches physical FPU to a different cpu while
l1 or l2 guest is running we need to sync CR0.TS bit in the
other vmcb.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Reviewed-by: Uwe Dannowski <Uwe.Dannowski@amd.com>
Reviewed-by: Wei Huang <Wei.Huang2@amd.com>
xen/arch/x86/hvm/svm/nestedsvm.c
xen/include/asm-x86/hvm/svm/nestedsvm.h